import request from "@/api/index"

export default{
  /**
   * @description: 添加防治记录 *代表必填
   * @param {Object} params *
   * @return {Object}
   */
   add(params){
    const url = "/health/epidemicPrevention/add"
    return request.post(url,{
      ...params
    })
  },
  /**
   * @description: 编辑防治记录 *代表必填
   * @param {Object} params *
   * @return {Object}
   */
   edit(params){
    const url = "/health/epidemicPrevention/edit"
    return request.post(url,{
      ...params
    })
  },
  /**
   * @description: 康复 *代表必填
   * @param {Object} params *
   * @return {Object}
   */
  recovery(params){
    const url = "/health/epidemicPrevention/recovery"
    return request.post(url,{
      ...params
    })
  },
  /**
   * @description: 审核 *代表必填
   * @param {Object} auditStaffId *
   * @param {Object} auditStaffName *
   * @param {Object} auditType *
   * @param {Object} auditedId *
   * @param {Object} failReason *
   * @return {Object}
   */
  audit(params){
    const url = "/health/epidemicPrevention/audit"
    return request.post(url,{
      ...params
    })
  },
  /**
   * @description: 批量删除防治记录 *代表必填
   * @param {String/Number} id *
   * @return {Object}
   */
  delListById(params){
    const url = "/health/epidemicPrevention/delListById"
    return request.get(url,params)
  },
  /**
   * @description: 单个删除防治记录 *代表必填
   * @param {String/Number} id *
   * @return {Object}
   */
   delById(params){
    const url = "/health/epidemicPrevention/delById"
    return request.get(url,params)
  },
  /**
   * @description: 条件查询 *代表必填
   * @param {Object} params *
   * @return {Object}
   */
  queryByCondition(params){
    const url = "/health/epidemicPrevention/queryByCondition"
    return request.post(url,{
      ...params
    })
  },
  /**
   * @description: 分页查询防治记录 *代表必填
   * @param {Object} params *
   * @param {String/Number} page *
   * @param {String/Number} size *
   * @return {Object}
   */
   queryPageByCondition(params){
    const url = "/health/epidemicPrevention/queryPageByCondition"
    return request.post(url,{
      ...params
    })
   },
}
